import React from 'react';
import './index.scss'
// import Store from '../../store'
import store from '../../utils/store'
import { observer } from "mobx-react-lite"



 function Index() {
  // 只初始化一次，后续不再加载, 用于获取用户信息等
  // const initStore = new Store(); 
  // console.log(initStore,"909090909090")
  return (
    <div>
      <h1>pageOne!</h1>
      <h3>计数器案例</h3>
      <div>点击次数：{store.count}</div>
      <button onClick={() => store.increment()}>加1</button>
      <button onClick={() => store.decrement()}>减1</button>
      <button onClick={() => store.reset()}>重置</button>
    </div>
  );
 }
export default observer(Index)
